package com.example.mapper;

import com.example.entity.Hotel;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface HotelMapper {
    List<Hotel> selectAll(Hotel hotel);
    
    @Select("select * from `hotel` where id = #{id}")
    Hotel selectById(Long id);
    
    void insert(Hotel hotel);
    
    void updateById(Hotel hotel);
    
    @Delete("delete from `hotel` where id = #{id}")
    void deleteById(Long id);
    
    // 新增：查询酒店最低房间价格
    Double getMinPriceByHotelId(Long hotelId);

    

}